<?php

declare(strict_types=1);

namespace owns\auth;

use owns\auth\MemberAuth;
use owns\enum\AppEnum;

class Auth
{
    public static function instance()
    {
        if (request()->port == AppEnum::PORT_USER) {
            return UserAuth::instance();
        }
        return MemberAuth::instance();
    }
}
